package com.coda.clouddisk.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 文件共享
 */
@Component
@Data
public class FileShareRecord extends AbsObject {

    //文件id
    private ArrayList<String> file;
    //文件分享码
    private String shareCode;
    //永久共享
    private Integer canForever;
    //开始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startDate;
    //结束时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;
    //是否下载
    private boolean canDownload;
    //共享人数
    private int shareCount;
    //好友id
    private List<String> friendId;
    //共享好友名称
    private List<String> friendName;
    //共享的文件
    private List<KeSunAttachment> keSunAttachments;

}
